package com.zxd.constructor;

/**
 * ClassName:Z
 * Package:com.zxd.statics
 *
 * @Date:2023/9/21 9:54
 * @Author:zxde
 */
public class Z extends F {
    private String position;

    public void setPosition(String position){
        this.position = position;
    }

    public String  getPosition(){
        return this.position;
    }

    public Z(){}

    public Z(String name,Integer age,String position){
        super(name, age);
        this.position = position;
    }

    public Z(String name,Integer age){
        this(name, age,"合肥");
    }
}
